<?php
	require_once("validar_usuario.php");

?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="estilo.css" rel="stylesheet" type="text/css" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.ba {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: bold;
	color: #000066;
}
.texto_backup {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
}
.sa {
	color: #000000;
	font-weight: bold;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
.sal {
	color: #000000;
	font-weight: bold;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 14px;
}
a:link {
	text-decoration: none;
	color: #000000;
}
a:visited {
	text-decoration: none;
	color: #000000;
}
a:hover {
	text-decoration: underline;
	color: #000000;
}
a:active {
	text-decoration: none;
	color: #000000;
}
.titulo_cad {	font-family: Verdana, Geneva, sans-serif;
	font-size: 16px;
	font-weight: bold;
	color: #666;
}
.title {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 12px;
	font-weight: bold;
}
-->
</style>
<SCRIPT LANGUAGE="JavaScript">
<!--
function valid(form) {
  var nome,senha;
  nome = document.form1.arquivo.value;
  senha = document.form1.senha.value;
  
  if (nome == "") {
     alert("Informe um Arquivo para o Restore.");
     return false;
  }
  if (senha == "") {
     alert("Informe a Senha para o Restore.");
     return false;
  }
}
// -->
</SCRIPT>
</head>

<body>
<div id="box">
<form id="form1" enctype="multipart/form-data" onSubmit="return valid(this)"  name="form1" method="post" action="../backup/restore.php">
  <table width="680" border="0" align="center">
    <tr>
      <td width="439">&nbsp;</td>
      <td width="231">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2" align="center">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2" align="center"><span class="titulo_cad">Backup e Restore</span></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td align="left" valign="top" class="ba">&nbsp;</td>
      <td align="left">&nbsp;</td>
    </tr>
    <tr>
      <td align="left" valign="top" class="ba">Backup</td>
      <td align="left">&nbsp;</td>
    </tr>
    <tr>
      <td rowspan="2" align="left" valign="middle" class="texto_backup">Para Salvar uma c&oacute;pia dos dados referente ao sistema clique no bot&atilde;o ao lado.</td>
      <td align="left" valign="middle"><a href="../backup/backup.php"><img src="../img/backup.png" alt="" width="90" height="89" border="0"/><br>
        <span class="sal">Clique Aqui</span></a></td>
    </tr>
    <tr>
      <td align="left">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2" align="left" valign="top" class="ba"><hr /></td>
    </tr>
    <tr>
      <td align="left" valign="top" class="ba">&nbsp;</td>
      <td align="left">&nbsp;</td>
    </tr>
    <tr>
      <td align="left" valign="top" class="ba">Restore</td>
      <td align="left">&nbsp;</td>
    </tr>
    <tr>
      <td align="left" valign="top" class="texto_backup">Para Restaurar a Base de Bados informe a localiza&ccedil;&atilde;o do arquivo de Backup.</td>
      <td align="left">&nbsp;</td>
    </tr>
    <tr>
      <td align="left"><label>
        <input name="arquivo" type="file" id="arquivo" size="60" />
      </label></td>
      <td align="left">&nbsp;</td>
    </tr>
    <tr>
      <td class="title">Senha de Restore:</td>
      <td align="left">&nbsp;</td>
    </tr>
    <tr>
      <td align="left"><label for="senha"></label>
      <input name="senha" type="password" id="senha" size="25" maxlength="20"></td>
      <td align="left"><input name="carregar" type="submit" class="botao" id="carregar" value="Restaurar Dados" /></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="left">&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="left">&nbsp;</td>
    </tr>
  </table>
</form>
</body>
</div>
</html>

